package cn.kt.controller.UserTeacher;

import cn.kt.common.vo.ktResult;
import cn.kt.pojo.TeacherPojo;
import cn.kt.service.UserTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ResponseBody
@Controller
public class UserStateUpdateController {

    @Autowired
    UserTeacherService userTeacherService;

    @GetMapping("/doStateChange")
    public ktResult doStateChange(TeacherPojo tp){
        return userTeacherService.updateUser(tp);
    }
}
